<template>
  <div class="home">
    <div class="chart_top">
      <div class="bar">
        <!-- 柱状图 -->
        <bar-com></bar-com>
      </div>
      <div class="pie">
        <pie-com></pie-com>
      </div>
    </div>
    <div class="line_bg">
      <line-com></line-com>
    </div>
  </div>
</template>

<script>
import barCom from './homecharts/bar.vue'
import pieCom from './homecharts/pie.vue'
import lineCom from './homecharts/line.vue'
export default {
  name: 'Home',
  components: {
    barCom,
    pieCom,
    lineCom
  }
}
</script>
<style lang="less">
.chart_top {
  width: 90%;
  margin: 20px auto;
  height: 450px;
  background: black;
  display: flex;
  justify-content: space-around;
  .bar {
    width: 45%;
    height: 400px;
    background: white;
    margin-top: 20px;
  }
  .pie {
    width: 45%;
    height: 400px;
    background: white;
    margin-top: 20px;
  }
}
.line_bg {
  width: 100%;
  height: 400px;
  background: black;
}
</style>
